<?php echo($html->css('addform',null,null,false))  ?>
<div id='frm-content'>
<div class='mockDiv'><span class='msg'>
<span class='error-message'>
<?php
    if($form->isFieldError('User.password2'))
        e('密码最少6个字符');
?>
</span>
</div>
<?php
e($form->create('User',array('action' => 'edit')));
e($form->input('User.id',array('type' => 'hidden')));
e($form->input('User.username',array('type' => 'text','disabled'=>true,'label'=>'用户名:')));
e($form->input('User.password2',array('label' => '输入新密码','value'=>'','error'=>false)));
e("<div style='padding-left:20%;color:#ffffff;margin-bottom:5px;font-size:1.2em'>".$form->checkbox('User.admin_leve',array('value'=>1,'checked'=>$checked)).'<label>赋予管理员权限</label></div>');
e($form->end('提交'));
?>
</div>